////
////  VideoPlayer.swift
////  DYSwiftFramework
////
////  Created by huangdeyu on 2021/12/1.
////  Copyright © 2021 none. All rights reserved.
////
//
//import Foundation
////import TXLiteAVSDK_Player
//
//class VideoPlayer :NSObject, TXVodPlayListener{
//
//    lazy var player = TXVodPlayer.init()
//
//    private func setupPlayer(){
//        let config = TXVodPlayConfig.init()
//        config.progressInterval = 1
//        config.maxCacheItems = 20 // 最多缓存的数量
//        config.maxBufferSize = 500 // 最多缓存的大小
//
//        player.config = config
//        player.vodDelegate = self
//        player.isAutoPlay = true
//        player.setRenderMode(.RENDER_MODE_FILL_SCREEN)
//        player.setMute(true);
//
//    }
//    
//    func stopPlay()  {
//        
//    }
//    
//    func startPlay(url:String,onView:UIView)  {
//        player.removeVideoWidget();
//        player.setupVideoWidget(onView, insert: 1);
//        player.startPlay(url);
//    }
//
//    // 播放事件回调
//    func onPlayEvent(_ player: TXVodPlayer!, event EvtID: Int32, withParam param: [AnyHashable : Any]!) {
//
//    }
//
//    func onNetStatus(_ player: TXVodPlayer!, withParam param: [AnyHashable : Any]!) {
//
//    }
//}
